class Solution(object):
    def flipAndInvertImage(self, image):
        """
        :type image: List[List[int]]
        :rtype: List[List[int]]
        """
        return [[1 - t for t in r][::-1] for r in image]



data = Solution()
image = [[1, 1, 0], [1, 0, 1], [0, 0, 0]]
print(data.flipAndInvertImage(image))
